package org.htmlparser.parserapplications.filterbuilder.layouts;

import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.LayoutManager2;
import java.io.Serializable;

public class NullLayoutManager
  implements LayoutManager2, Serializable
{
  public void addLayoutComponent(Component paramComponent, Object paramObject)
  {
  }

  public void addLayoutComponent(String paramString, Component paramComponent)
  {
  }

  public float getLayoutAlignmentX(Container paramContainer)
  {
    return 0F;
  }

  public float getLayoutAlignmentY(Container paramContainer)
  {
    return 0F;
  }

  public void invalidateLayout(Container paramContainer)
  {
  }

  public void layoutContainer(Container paramContainer)
  {
    while (true)
    {
      int j;
      synchronized (paramContainer.getTreeLock())
      {
        int i = paramContainer.getComponentCount();
        j = 0;
        if (j < i)
        {
          Component localComponent = paramContainer.getComponent(j);
          if (!(localComponent.isVisible()))
            break label72;
          Dimension localDimension = localComponent.getPreferredSize();
          localComponent.setSize(localDimension.width, localDimension.height);
          break label72:
        }
        label72: return;
      }
    }
  }

  public Dimension maximumLayoutSize(Container paramContainer)
  {
    return preferredLayoutSize(paramContainer);
  }

  public Dimension minimumLayoutSize(Container paramContainer)
  {
    return preferredLayoutSize(paramContainer);
  }

  // ERROR //
  public Dimension preferredLayoutSize(Container paramContainer)
  {
    // Byte code:
    //   0: aload_1
    //   1: invokevirtual 27	java/awt/Container:getTreeLock	()Ljava/lang/Object;
    //   4: astore_2
    //   5: aload_2
    //   6: monitorenter
    //   7: aload_1
    //   8: invokevirtual 31	java/awt/Container:getComponentCount	()I
    //   11: istore 4
    //   13: iload 4
    //   15: ifne +78 -> 93
    //   18: aload_1
    //   19: invokevirtual 67	java/awt/Container:getSize	()Ljava/awt/Dimension;
    //   22: astore 5
    //   24: aload_1
    //   25: invokevirtual 71	java/awt/Container:getParent	()Ljava/awt/Container;
    //   28: astore 11
    //   30: aload 11
    //   32: ifnull +56 -> 88
    //   35: aload 11
    //   37: invokevirtual 75	java/awt/Container:getInsets	()Ljava/awt/Insets;
    //   40: astore 12
    //   42: aload 11
    //   44: invokevirtual 67	java/awt/Container:getSize	()Ljava/awt/Dimension;
    //   47: astore 5
    //   49: aload 5
    //   51: aload 5
    //   53: getfield 51	java/awt/Dimension:width	I
    //   56: aload 12
    //   58: getfield 80	java/awt/Insets:left	I
    //   61: isub
    //   62: aload 12
    //   64: getfield 83	java/awt/Insets:right	I
    //   67: isub
    //   68: aload 5
    //   70: getfield 54	java/awt/Dimension:height	I
    //   73: aload 12
    //   75: getfield 86	java/awt/Insets:top	I
    //   78: isub
    //   79: aload 12
    //   81: getfield 89	java/awt/Insets:bottom	I
    //   84: isub
    //   85: invokevirtual 90	java/awt/Dimension:setSize	(II)V
    //   88: aload_2
    //   89: monitorexit
    //   90: aload 5
    //   92: areturn
    //   93: new 47	java/awt/Dimension
    //   96: dup
    //   97: iconst_0
    //   98: iconst_0
    //   99: invokespecial 92	java/awt/Dimension:<init>	(II)V
    //   102: astore 5
    //   104: iconst_0
    //   105: istore 6
    //   107: iload 6
    //   109: iload 4
    //   111: if_icmpge +84 -> 195
    //   114: aload_1
    //   115: iload 6
    //   117: invokevirtual 35	java/awt/Container:getComponent	(I)Ljava/awt/Component;
    //   120: astore 8
    //   122: aload 8
    //   124: invokevirtual 41	java/awt/Component:isVisible	()Z
    //   127: ifeq +126 -> 253
    //   130: aload 8
    //   132: invokevirtual 96	java/awt/Component:getLocation	()Ljava/awt/Point;
    //   135: astore 9
    //   137: aload 8
    //   139: invokevirtual 45	java/awt/Component:getPreferredSize	()Ljava/awt/Dimension;
    //   142: astore 10
    //   144: aload 5
    //   146: aload 5
    //   148: getfield 51	java/awt/Dimension:width	I
    //   151: aload 9
    //   153: getfield 101	java/awt/Point:x	I
    //   156: aload 10
    //   158: getfield 51	java/awt/Dimension:width	I
    //   161: iadd
    //   162: invokestatic 107	java/lang/Math:max	(II)I
    //   165: putfield 51	java/awt/Dimension:width	I
    //   168: aload 5
    //   170: aload 5
    //   172: getfield 54	java/awt/Dimension:height	I
    //   175: aload 9
    //   177: getfield 110	java/awt/Point:y	I
    //   180: aload 10
    //   182: getfield 54	java/awt/Dimension:height	I
    //   185: iadd
    //   186: invokestatic 107	java/lang/Math:max	(II)I
    //   189: putfield 54	java/awt/Dimension:height	I
    //   192: goto +61 -> 253
    //   195: aload_1
    //   196: invokevirtual 75	java/awt/Container:getInsets	()Ljava/awt/Insets;
    //   199: astore 7
    //   201: aload 5
    //   203: aload 5
    //   205: getfield 51	java/awt/Dimension:width	I
    //   208: aload 7
    //   210: getfield 80	java/awt/Insets:left	I
    //   213: aload 7
    //   215: getfield 83	java/awt/Insets:right	I
    //   218: iadd
    //   219: iadd
    //   220: putfield 51	java/awt/Dimension:width	I
    //   223: aload 5
    //   225: aload 5
    //   227: getfield 54	java/awt/Dimension:height	I
    //   230: aload 7
    //   232: getfield 86	java/awt/Insets:top	I
    //   235: aload 7
    //   237: getfield 89	java/awt/Insets:bottom	I
    //   240: iadd
    //   241: iadd
    //   242: putfield 54	java/awt/Dimension:height	I
    //   245: goto -157 -> 88
    //   248: astore_3
    //   249: aload_2
    //   250: monitorexit
    //   251: aload_3
    //   252: athrow
    //   253: iinc 6 1
    //   256: goto -149 -> 107
    //
    // Exception table:
    //   from	to	target	type
    //   7	251	248	finally
  }

  public void removeLayoutComponent(Component paramComponent)
  {
  }
}